fixed galleries on small windows, improved code tag handling in format, checked for 'None' venues