How to configure carousel with a button