getting it to show 10 categories at a time