setting number of categories in sidebar