A gain-assisted model is considered to study the Goos-H$\stackrel{\ifmmode \ddot{}\else \"{}\fi{}}{\text{a}}$nchen (GH) shift behavior in the reflected and transmitted light. In this model, a probe light is incident on a cavity containing three-level dilute gaseous atomic medium. The atom-field interaction follows two-photon Raman transitions, and the dielectric susceptibility of the medium exhibits dispersion and gain properties [L. J. Wang, A. Kuzmich, and A. Dogariu, Nature (London) 406, 227 (2000)]. Under appropriate conditions, two gain peaks are observed with anomalous dispersion between the peaks, whereas normal dispersion can be observed at and around the gain maxima. The manipulation of the detuning associated with the probe light field which interacts with the intracavity medium during its propagation through the cavity can lead to a control over negative and positive GH shift in the reflected and transmitted light beam via the anomalous and normal dispersion of the medium.