Loggin height and rendering arrows according to the width of the screen