Just went downstairs and pulled mine off the shelf and set them against a tape. I didn't have pics when I tried to pull these off...notice they're both broken
Anyway, if you zoom you can see where/how they're connected, which may help you develop a safe method. Notice the back is held with metal slip-on clips, and the fronts have pads with tiny opposing mushrooms that lock into each other when pressed together. If you can first separate the lock pads in the front maybe you can then get the trim off the metal clips by moving it downward. Looking inside the car, the other end of the clips attach to the sunroof panel. Also think it would go better if you removed the pillar panels first.
EDIT: These pictures show the panels upside down.