moved slider data from template to view