Fix the prev and next buttons in mobile view