fix centering map when resizing