Version that fills holes in Z before creating a new layer