added an autoSlide option