changing gallery transitions to background