added attributes to gallery template