improved main_div_class helper