Right, thats the clams foot then. It shouldn't become unattached from the clam at any point. Sometimes it will stick the foot out of the clam so that it can right itself or to find the substrate. Sorry I think I misunderstood the "laying under the clam" part. I thought it had become unattached from the clam.
Definitely the foot. Attachment is good, all systems go
