Add slice viewer & fix small bug in slicer.