Here's a pretty good how to video
Porsche 911 996 & Boxster 986 Headlight Removal & Replacement - YouTube
I got one of my headlamp assemblys stuck because it wasn't fitted exactly in one of the tracks,
you just have to work it back out.
Good luck , Nick