trim up the page, remove ugly parts in header and footer