fix removeSlide for indices before current - issue #1049