рони,
Спасибо за подсказку

Может кому-то понадобится, вот решение.
$( ".item" ).each(function(  ) {
    if ( $(this).attr('data-page') >= 1 && $(this).attr('data-page') <= 20) {
      $(this).css('display','block');
    } else {
      $(this).css('display','none');
    }
	});