fix: use ceiling of slice thickness for erosion purposes