update the map size