Slope correction for height values