Influence of gain dynamics on dissipative soliton interaction in the presence of a continuous wave