new map layer and better resizing