Added pagination to the slider