Ford Escort ZX2 Moon Roof

what are the mechanics of a moon roof / sun roof?

I ask because as I push the button to open glass the opener begins to make an awful clicking sound like the whole thing is going to fall apart. I am thinking that this is due to the gears slipping. Any thought?