add canvas and slider