moved gallery index rendering to a task, had to change templates a bit