Checks if it is possible to do back or forward in browser before showing
arrows and changed the layout of the arrows