The influence of dense gas rings on the dynamics of a stellar disk in the Galactic center