slider pagination fix