enforce minimum and maximum zoom level