In antacid preparation aluminum hydroxide is added with magnesium salt because -
Magnesium caused constipation To counteracts constipating effect of aluminum hydroxide To counteract the diarrhea action of aluminum Aluminum salt causes diarrhea