preserve branch when deleting last slide

previously, the branch would continue to point at the deleted slide.