removed meta box in gallery carousel and made code more beautiful