Gallery logic, custom category system, custom gallery