[#65] Refactor the slides front end script