Change slides index to use the right slides.