Could you not have a sand area at the front, so that it's full depth, and then clay in the rest of the tank? Corydoras will like molar clay, too. And, finally, plants can do fine in sand alone, and you don't need to worry about compacting since the root growth will move it about. I can...