resize header and footer