window resizes map correctly