If the sun is not in the image you want, holding the dark slide (or hat, or whatever) in a position where the shadow it casts just barely covers the front lens element and no more will ensure that you don't get an edge of the slide in the image area.
The best solution is a compendium that you can rack in and out to just past the point where it vignettes, but there's not a really good compendium that I've found for working in the field. They're big and bulky.
The best compromise I've found is an old Voss filter holder with barn doors. Search eBay for Voss filter holder and you'll turn up a few. They only have two doors, but they fit lenses with filter sizes up to 67mm, are lightweight and can hold a gel or resin filter too.
The same caveat applies about positioning the doors so that you don't vignette
Best,
Doremus