Evolution and stratification of a plasma cloud surrounding a pellet