updated gallery methods