How to prevent smaller nodes going behind bigger ones?

During dragging I face this situation, I have set in my nodetemplate go:Part.LayerName=“Foreground”
You can see in below SS how the nodes hide behind the bigger node

Which nodes are in the “Foreground” Layer? Does the big (Group?) node have to also be in the “Foreground” Layer?

Please read the Introduction’s section on “Layers”, starting on page 96. You’ll see a couple different solutions for the problem that you appear to have, where you want selected Nodes and Links to be brought forward. Although they both depend on the “Foreground” Layer not otherwise being used very much.

Thank you this helped me solve the issue