added padding variable for thumbnail caption