.widget_categories ul li:nth-child(n+10) {
    display: none !important
}