Updating gallery render, more efficiency and stuff