These parts slide forward as the final step in closing to pull the glass down in the rear to make a water tight seal.
Troubleshooting: Push up on the rear corners of the glass with the sunroof in the closed position. If the glass does not feel firmly closed, chances are you need the locker slides replaced.