Sensex Trims Gains