Yes, as mentioned, place a flatish piece of rock beneath the sand, beneath the clam. Once it attaches, move it higher in your rock work.
Smoothy, another thing I might suggest...not sure, but I think Sun Corals are carnivorous so need zooplankton, while the clams need the phytoplankton.