Added gallery preloading;