Fixing pagination: no prev and next