amend slider js init