remove unnecessary slides