update size of map