integrate resize map thingies into one