Replace shorttag in gallery template

ref https://github.com/owncloud/core/issues/4012