added magnetic css for gallery images