Accurate vertical profiles of turbulent flow in z-layer models