Don't glue it.
Get an oyster shell and place the clam on top of it on your sandbed.
Let the clam naturally attach itself to the shell.
Then you can place it where you want too.
However, after doing so, if you notice it not extending fully you should try placing it elsewhere..
HTH