my mistake, here is the cod, try to use this code and make changes to apply to you
<!-- Categoriile principale-->
<?php
$total_categories = osc_count_categories() ;
$col1_max_cat = ceil($total_categories/3);
$col2_max_cat = ceil(($total_categories-$col1_max_cat)/2);
$col3_max_cat = $total_categories-($col1_max_cat $col2_max_cat);
?>
<div class="categories <?php echo 'c' . $total_categories ; ?>">
<?php osc_goto_first_category() ; ?>
<?php
$i = 1;
$x = 1;
$col = 1;
if(osc_count_categories () > 0) {
echo '<div class="col c1">';
}
?>
<?php while ( osc_has_categories() ) { ?>
<div class="category">
<h1><strong><span class="category <?php echo osc_category_slug() ; ?>"></span><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a><img style="float:right;" src="<?php echo osc_current_web_theme_url('images/plus.png') ; ?>" alt="Collapsed" class="expand" id="plus_img<?php echo $cat_id; ?>" /> </strong></h1>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<div class="subcategoryes_bk">
<ul class="hide_forst5" >
<?php $tic = 0; while ( osc_has_subcategories() && $tic < 5) { ?>
<li><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></li>
<?php $tic ;} ?>
<?php View::newInstance()->_erase('subcategories') ; ?>
</ul>
<?php } ?>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<ul class="subcategory">
<?php while ( osc_has_subcategories() ) { ?>
<li><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span> </li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
<?php
if (($col==1 && $i==$col1_max_cat) || ($col==2 && $i==$col2_max_cat) || ($col==3 && $i==$col3_max_cat)) {
$i = 1;
$col ;
echo '</div>';
if($x < $total_categories) {
echo '<div class="col c'.$col.'">';
}
} else {
$i ;
}
$x ;
?>
<?php } ?>
</div>
</div>
<!--Categoriile principale sfarsit-->
<!--scrip categori cu drop-down-->
<script type="text/javascript">
$(document).ready(function() {
$('.subcategory').toggle();
$('.expand').live('click',function(){
$(this).parents('.category').find('.subcategory').slideToggle();
$(this).parents('.category').find('.hide_forst5').toggle();
if ($(this).attr("alt") == "Collapsed") {
$(this).attr("alt", "Expanded").attr("src", "<?php echo osc_current_web_theme_url('images/minus.png') ; ?>");
}
else
{
$(this).attr("alt", "Collapsed").attr("src", "<?php echo osc_current_web_theme_url('images/plus.png') ; ?>");
}
});
});
</script>