Make product-list resizing more generic