This is @frrrances's logic for the expand/collapse icon. It slides it in/out smoothly now, while before it would be a jerky movement.