Modified the code to display the slides in the left panel