resize header depending on height