Slugs are not a problem in the compost bin as they are natural decomposers and increase the bin’s rate of decomposition. However, they are known to damage gardens and are pretty simple to get out of compost.
One way to get slugs out of the compost bin is to dig a couple holes near the compost bin where the slugs are most abundant. Place a jar or bottle containing beer into the hole. Fill any space around the jar or bottle up with dirt. The slugs will be attracted to the beer and drown. Be sure to do this in the evening since slugs are most prevalent at night.
Another option is to place a wooden board near the slug infestation. Leave it overnight and in the morning turn it over. The slugs will go under the wood when the sun comes up. They can then be disposed of.