Extract paddings and heights to variables