Adapt skirt logic to the potential situation of objects with different layer heights