try to set number of items based on page width