fix page load
add gallery directive