add a script for generate carousel