made changes to galleries for ie and cleaned up code