Enable loop in galleries