improve styles for flex items
redraw overlays on page resize