prevent exceptions from occurring on removeSlide