Simply enlarge your document, add a background color as the background color where the GIF will be placed, then add your shadow to your GIF. This is the only way. 

If your output is for the web, you can add a CSS property to it and will look better than exporting the shadow in the GIF directly (will be better quality).