Taillights sometimes work, then they both go out, and come back

Thank you very much guys! I will try both this weekend!
I have solved the problem, it was in the fuse block. Having nobody to watch the tail lights, I set up a big mirror at 45-degree angle and only had to raise my head up from under the dash to check. Trying to be a MacGyver!