pull function updates

Turned the script into a function supporting multiple features on same
page. Accepted Parameters (both required) are id name (string with no
hash - just the name) of the parent container of the slider and the
number of slides to be shown in initial view.