The degree to which glaciers can erode into the landscape is dictated by their size, with larger glaciers able to erode deeper valleys than smaller glaciers.
A hanging valley is a shallow valley carved by a small glacier, with the elevation of the valley floor hanging high above the elevation of the valley floor carved out by the larger glacier.