remove unused slides, edit last slides