adjust static variables with card dimensions