change pagination to slider