improved behavior when deleting a slide