fix elements if they go off screen when the window is scrolled