var goToSlide=function(slides,index){for(var i=0;i