Working disparity map with decent margin size