Hid next and back buttons where there are no more slides.