gallery widget using on vanilla js