fix gallery image overflow and compiles css