Add proper resize of transition