updated Gallery layout