hide next and previous button when click menu