Improved code snippets in carousel