Gallery and horizontal sliding