Fixed bug with changing slide to index 0