changing index and some css for autoplay