You leave it go for awhile and it'll jump out of the barrel and come find you! :eek:
EDIT: BTW, that's just the easiest way to get the green slime if you already have a way to produce witch water. A second way, is to build a platform in the swamp biome. I haven't tried that one, but it should...