Check if there is only one slide

Added logic to check if there is only one slide to hide the carousel controls.