ignore hidden list items

ignore hidden list items when calculating number of items. this helps to set the width of the visible items when hiding some list items based on document width. (for enable using twitter bootstrap hidden/visible classes)