fixes resize
speeds up map gallery