added threading to collageview