I would check the transmission fluid level. If the level is low, which most likly it will be, add the recommended transmission fluid to bring the level between the min and max mark. Do not overfill. You should drive the car for about 15 min before you measrue the transmission fluid level.
If the problem returns, let us know but I think this may take care of your problem.