sprite usage on gallery to speed it up