currentSlide never goes below zero or above the number of slides minus the number of slides per page.