If you want to be less confrontational, a good approach is to tell them how you felt about it. I felt unsafe when you went past me, I would appreciate a bit more room. Most people consider their driving is fine and do not respond well to criticism, but will also recognise that their behaviour can have an adverse affect on others even when in some circumstances it is acceptable.