add gallery support