Added centerpiece slider functions to script.js