Slugs in Bird Boxes

Please help, last year we had 7-8 slugs enter the Bird Box and kill the baby birds, how can we prevent this happening again? We didn't even realise that this was even possible!