Improved listeners for next and previous slide buttons.