update dependencies and use new gallery view macro
optimised htaccess for better caching