set margin for exact grid scroll synch