Here’s one that works just for the Z faces:
If you want it to work on all faces, you need to write the other 2 sides. Don’t think you can do it with those world position functions.