pulling to get thumbnail function
changed layouts