Bugfixes in justified gallery plugin