Как получить список и показать некоторые в CSS

ul li:nth-of-type(1n+4) {display: none;} /* should match your case */
Helpful Hedgehog