put a limit on the shown number of items