That is not a slug, it is a nudibranch and it will not live long in your reef. Nudibranches are carnivores and although I don't know exactly what that one eats, it eats either corals or anemones.
All "slugs" would be safe as they are vegetarians.
Paul