Adding resize function to calculate description field