Enable gallery mode when viewing images