adding preloader to gallery