Higher sales and improved margins helped children's apparel retailer the Gymboree Corporation to narrower losses during the second quarter.