remove matrix from grid