adjusted z calibration to determine z range from number of z slices and step size