There is already a few plugins in the Extensions page that takes care of slideshows. But in case you want to create your own customized version, you can try creating a Widget plugin. Here is a good starter on creating plugins. https://www.nopcommerce.com/documentation.aspx :P