changed addSlide to return instance