Influence of shells on the driving potential in dissipative collisions