update map width and height