Fix the calculation of cards per row. Now card panel displays properly from one card to fifteen cards.