getNewSpanCol function

Calculating new spanCol with spanCol plus space made by column group