As electrolyte is added to a freshly precipitated substance, the particles of the precipitate preferentially adsorbs one particular type of ions of the electrolyte. As a result they get dispersed due to electrostatic repulsions. This gives the particles of colloidal size.