carousel: correctly reset when the slide event is prevented

This fixes a bug where carousel isn't correctly reset when the slide event is prevented. Which results in the carousel thinking that it was constantly sliding, making it impossible to slide.