Recalculated the sizes of the spans