Internal shear layers and edges of uniform momentum zones in a turbulent pipe flow