Added proper undoStack handling to the attrSlider class