On the transition from shell structure to collective behavior