How do I stop multiple cards being created in the same line