My work with gallery3 script