Pointing optimization for IACTs on indirect dark matter searches