It can help to pick a sandy spot such as a desert or beach so that your quicksand blends in with its surroundings.
Flowers only grow on dirt, coarse dirt, and grass, so this layer is necessary.
The dirt and flowers act as space-holders. You can’t place gravity-affected blocks (ie. (normal/red) sand, gravel, concrete powder, anvils) above air, otherwise they’ll collapse, so the flowers are instead used to keeps the top layer of sand from falling.
When someone walks through the string over your sand, the strings will break and the sand will fall.
This can make it harder victims to escape, and will simulate the slow-motion falling effect of quicksand.
Only do this if you’re not concerned with looting items.
Place a layer of hoppers along the bottom to collect the items.