There are literally hundreds of different sea slugs, which all have different requirements, that it could drive you crazy trying to identify it. There is a site called seaslugforum.com that has names, pics, and requirements of hundred of nudibranchs, but for now until you can id it, maybe place it in your fuge/sump, or in a small jar with holes in it and leave it in the tank. It could have hitchhiked on some live rock, a piece of coral, or some micro algae.