Updated code snippets in carousel