remove cells from the matrix when it not present in the dom (dynamic form)