derive loading foreground width from loading background