Hausdorff dimension of union of lines that cover a curve