fixed card sizes, refactored how they are computed