resize map on tab change