add functions to fit bootstrap
add js to enable masonry