Fix a bug preventing to remove a slide from the slider module.