protect nodes from leaving screen