Add reset after model change

If the model changes and the active slide is no longer existing (because of fewer slides), it will change to the first slide.