You can use the VertigoSlideshow (Silverlight slideshow) control in a custom feature just as it is used internally to the image gallery, but you can't really use the image gallery feature from a custom feature, though you could borrow code from it for your own feature.
Hope it helps,
Joe