On the formation and evolution of clumps of galaxies in an expanding universe