Fixes to gallery/details