The larger segments proximal to the coral are the coral's feeder tentacles. The thinner ones coming off of that are strings of coral mucus. In this case, one of the strings of coral mucus has combined with the mucus net from what appears to be a vermetid snail.