better resizing map