Slugs take over nestbox

We have a nestbox well up in a tree which has had successful great tit broods in several years. This year we see from the nest cam that there are often many, up to ten, pale tree slugs in it, and no sign of nesting. How can we prevent this slug takeover? Some ideas are to seal any holes in the base of the nestbox or to put some sort of tar-ring around the branch leading to the box. Has anyone experience with this?