recalculate map dimensions on display change