On Tuesday, the Sensex and Nifty opened comfortably in green and then slid twice into red zone during the volatile trading session. The Sensex managed to close at 38843.88 levels, up by 44.80 points or 0.12 per cent. Nifty closed at 11472.25 levels, up by 5.80 points or 0.05 per cent. The Mid-Caps and the Small-Caps once again outperformed the markets.