Add a slice viewer widget class.