How to divide products into two groups?