corrected incorrect classes for different pagination sizes