Added option for chaning Slide interval and some code improvement