Fix being on a "not existing" slide when removing elements

If your are e.g. on slide 2 and have the elements on that slide removed, you will now automatically switch to the first slide, instead of being on that empty no longer existing second slide.