startSlide update

making sure that the startSlide is not outside of scope