adding carousel functions