Angular momentum transfer and the size-mass relation in early-type galaxies