Fixed the silly glitch in the Next and Previous buttons