Bugfixes

Make getCurrentIndex work, and if removing the slide the user is on, move the user to the previous slide.