Remove unnecessary slides.