Nifty, Sensex may give up some gains – Thursday closi