Shares of Ulta Beauty slid after hours on Thursday after the cosmetics retailer forecast a profit and same-store sales for this year that were below Wall Street’s estimates, adding that it expects more selective consumer spending and that it was “increasingly mindful” of conflicts abroad.