fix #1541 -- stop galleries rebuilding constantly

Signed-off-by: Chris Warrick <kwpolska@gmail.com>