Delete nodes when not visible