The stellar shells surrounding an elliptical galaxy, as remnants of a dwarf galaxy disrupted during merging, reveal the distribution of energy and angular momentum of the progenitor dwarf galaxy. We develop a semi-analytical model to describe the changes in energy ΔE i and angular momentum ΔLz i for particles during the first infall. We show that these changes, induced by the self-gravity of the progenitor, are important in broadening the initial energy distribution of the Plummer or Hernquist progenitor model. Consequently, these changes are crucial in shaping the shells. In the freefall stage following the disintegration of the progenitor potential, particles are no longer bound by self-gravity but move within the gravitational potential of the target galaxy. We investigate the relationship between the radial period and the energy of particles undergoing radial motion. We show that an accurate model of the energy range of the dwarf galaxy at disruption is essential to predict the number of observable shells.