changed slides to index