add pagination class to container div