This is a recommendation, not an official “best layout”
The underlying Shaker, Wet Sand and Water mechanics are official. The arrangement below is a practical layout principle and has not been independently benchmarked by this site.
Recommended approach: keep the opening Gold line compact, make each material path visible, leave open space under the Shakers for Gold, and give Residue its own exit before adding more production.
The underlying Shaker, Wet Sand and Water mechanics are official. The arrangement below is a practical layout principle and has not been independently benchmarked by this site.

Feed a manageable Wet Sand stream instead of flooding the entire area. A smaller input makes it much easier to see whether the bottleneck is Water, Shaker capacity, or Residue movement.
Gold passes through the Shaker body, so the space below should stay open and separate from other solids.
Residue stays on top and moves slowly. Do not let it accumulate where new Wet Sand is entering.
Make Wet Sand before the Shaker area. Water is easier to diagnose when it has a clear basin/mixing zone rather than leaking through the production line.
Add more Shaker capacity when you know which material is backing up. Expanding before that point often hides the real cause.