You could use .slice() like so:
$(function () {
$("#tabs").tabs();
$('#tabs li').slice(2, 5).css('visibility', 'hidden');
});
or :nth-child() like so:
$(function () {
$("#tabs").tabs();
$('#tabs li:nth-child(even)').css('visibility', 'hidden'); //note: even can be replaced with odd, specific number, or 3n+1 etc...
});
These are just a couple of quick examples obviously there are a lot of ways to traverse and select.