Just take your image, lasso around the edges you want to keep. Copy the selection, create a new image. It should automatically give you the same size as your selection, and select "Transparent" at the bottom of the box. Paste your selection into the new image, save as a .gif (else you won't be able to keep the transparency) and you're done.
Hope that's helpful.