changed thumnail adding to margin, added border to image