small change to gallery template