making a take width and height of card