Shares of Amazon.com Inc. AMZN, +0.03% gained 0.6% in afternoon trading Tuesday, putting the ecommerce and cloud giant on track to close with a market capitalization above $1 trillion for a third-straight day. The rally comes after reports the company plans to lay off about 10,000 workers.