Updated gallery status function