adding resizing of map for initial load.