Fixed behavior while resizing the browser window