Improve carousel initialization