Weird gallery images rendering