Turn off the grid and work with the docking mode. Activate it with the enter or return key.
Then use ctrl to hold the object in place and use ctrl +arrow keys to turn and move it into place.
Easier it is if you just place the beam with that gap and use a shorter beam to fill that gap