Added previous and next slide functions