take into account headers and footers when fitting map to bounds