Support of retain instance in SliderMenu
Fix #508