Currently, there is no built-in feature in Prefect to hide sub-flows by default in the UI. However, there is an open feature request suggesting the addition of a toggle to show or hide child flows on the flow runs page and dashboard, which you can track for updates:
GitHub Issue #10272.
For now, you might have to rely on manually managing the visibility of sub-flows or using custom solutions until such a feature is implemented.