add comments to slider functions