Added the slideCount vs. slidesToShow check in the changeSlide() function.