fixing next and prev buttons on mobile layout