adding padding and amrgins, arranging card contents