added function to generate random transition effect between all imgs