Added resize method for map