Yes, you would need to look in your home.php file and copy the code, and then remove it and add it to your functions file. You could probably just follow that tutorial above to see how it works, and change the widget to match the same widget name as the slider on your home.php file. Then that way all you have to do is add the code in the functions file and change the name to slider. Does that make sense?