expand and collapse logic to overlapping motion activity