Eh, its hard....the best way is to face them towards the front of the car, so theyrefacing the windshield. Its very hard to not get rattles.
You could do some dynamat
but the best thing I ever did was face the box towards the front of the car.
Hasnt rattled since.