Group closest parallel lines which are equal in length

this is what i have done…
i got the parallel lines with equal length.
But,some lines are grouped with lines which are far away & which are equal in length.
i’m unable to group the nearest and equal length.
attached the image with some lines so that u can get what i’m trying to say.
.

this is way i filtered them.

Thank you.

Regards.