resize map after hiding unused route graphs