Fix to gallery compound to fix IE7 bugs to do with margins and spacing. Fixes #156