We should occupy ourselves with our own faults and this will keep us busy from thinking bad about others.
In majalis strive to think solely about the topic of the majlis and about the personalities of Ahl uk Bayt (as). Remove yourself from the worldly distractions for this time and dedicate that time solely to seeking the pleasure of Allah.