Hello, there is no "trick" to share that can help. Your BMW will require hands on diagnostic testing to find out what is happening to the transmission.
RepairPal Certified shops can diagnose and repair your 2004 BMW 645Ci. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.