added firstSlide and lastSlide class to first and last slides