On a mechanism of soliton bunching in Josephson junctions