Remember the position and depth of the z_depth from the selected layers