ul.summary > li:nth-child(-n+2) {
    display: none;
}

ul.summary > li:nth-last-child(-n+2) {
    display: none;
}
