update height and width of map