header resizing and menu positioning