That will help the drainage, but you need to compact the gravel as well as the earth, or the gravel will settle and cavities will form under the slab. Cavities mean cracks. If the gravel is packed and the ground does heave, you are likely to crack...