BUG: fixed issue for cross-sectional area measurement on last slice