Change pagination to slider