Remove debugging and fix small gallery issue