recalculate offsets on expand