fixing mobile pagination