pagination class moved outside viewport in order to allow to be used externally