fix map height/width automatically with tilemap