refactoring add axes and slider method