clearing firstSlide/lastSlide classes