Midrapidity cluster formation in heavy-ion collisions