set pagination on table to auto, hide if less than 5