change canvas by slider