resizing map and graph