Heat transfer to slug flows with finite wall thickness