Updating the slides and adding the needed div with class of slides.