updates to gallery feature