Restriction for two planes

Restricts the selected nodes on two parallel planes