As the online fashion retailer grapples with slowing demand and rising costs.