Add gallery behavior