1099-Div Gain Split for MA

I'm filing a partial year in MA.  We move to CT.  I've spilt the 1099B transactions between the two states and that's fine.  However, I don't see a way to split the Capital Gains listed on the 1099-DIV (Line 2a).  How do I show that this is for the partial year?

 

Thanks