use container demensions for the map