Made carousel buttons dynamic