fixing issues where the map would not resize properly when hiding and showing again.