handle map size change