Added pagination to slider