implemented frontend gallery