Implemented switching slides.