Iterative reduction of the number of Gaussians