add slider
implement localization function