I think you'll need to create your own filter. Needs to go in a customer javascript and run before the page with the list loads. I have one that loads some global variables etc and have it in there. Called it a_globals.
In there you put the
$.mobile.document.one("filterablecreate", "#id of your list", function() {
$("#id of your list").filterable("option", "filterCallback", function(index, searchValue) {
//initialise counter - since it reads all list items then if index = 0 this will be the first time
if(index === 0) noHidden = 0;
//In here you go the normal filtering (or make up your own). Result is true if to be //hidden
var hidden = false;
var text = ($('#screenname_fieldname_' + index).val());
if(text !== searchValue) hidden = true; // or whatever
if(hidden) noHidden++;
//now if more than 5 - hide them as well
if(noHidden 5 hidden = true;
return hidden;
});
});
Anyway something like that. My javascript is a bit average so excuse any coding errors. Also make sure to define noHidden as a global variable or it could be in local/session storage.
There's lots more in the web - search for "filterablecreate" - jquery mobile.
Good luck