Gallery fixed using older scipt