Here's one method.
Have Smart Guides and Snap to Point ON. No other snaps are allowed.
Make duplicates of the lines without moving them; for ex. select them, copy and paste in place.
Expand the duplicates to get rectangles which are equally sized with your lines
If you want to move one line, select it and the same sized rectangle. When you move them together ...