Create image gallery js