High gain of a free electron laser with a Gaussian profile