This is my design for a foam core divider. This was built using 5mm thick foam core. You may need to make some adjustments after you finish.
1. for the card tray, insert the dividers once you have cards in place. Mark the divider placement, then glue once you remove the cards.