Load Balancing 2 WAN same gateway and subnet

Hi,
I have one device that provide internet using two wireless links.
I need to merge these links to double the speed.
I followed this link:
https://wiki.mikrotik.com/wiki/Manual:Load_balancing_multiple_same_subnet_links
the problem with this script is the DHCP server, when I setup DHCP server, it takes only one subnet which direct the traffic to only one WAN, when I disable the WAN1 for example it start to take from WAN2, and vise versa.
is there any trick to overcome this prrblem?

I used the following code, but when I tested, it seems like only WAN1 connection is working at a time, when I disable WAN1, WAN2 starts to work
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2

/ip route
add gateway=x.x.x.161%WAN1 pref-src x.x.x.165 distance=1
add gateway=x.x.x.161%WAN2 pref-src x.x.x.167 distance=2

add gateway=x.x.x.161%WAN1 pref-src x.x.x.165 routing-mark=gate1 distance=1
add gateway=x.x.x.161%WAN2 pref-src x.x.x.167 routing-mark=gate1 distance=2
add gateway=x.x.x.161%WAN2 pref-src x.x.x.167 routing-mark=gate2 distance=1
add gateway=x.x.x.161%WAN1 pref-src x.x.x.165 routing-mark=gate2 distance=2

What about mangle rules from linked page? That’s an important part. Those two are for two LANs with static assignment, so not exactly what you need, but you do need some others like PCC. Most important ones (for minimal working config) from that page are:

add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \
    per-connection-classifier=both-addresses:2/0 action=mark-connection new-connection-mark=ISP1_conn 
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \ 
    per-connection-classifier=both-addresses:2/1 action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing \ 
    new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing \
    new-routing-mark=to_ISP2

THANKS FOR YOUR REPLY
I tried the following code to combine two connections having the same gateway and Subnet:

/ ip address
add address=192.168.0.1/24  interface=LAN
add address=213.14.232.165/28  interface=ISP1
add address=213.14.232.167/28  interface=ISP2

/ ip firewall mangle
add chain=prerouting dst-address=213.14.232.160/28  action=accept in-interface=LAN
add chain=prerouting dst-address=213.14.232.160/28  action=accept in-interface=LAN
/ ip firewall mangle
add chain=prerouting in-interface=ISP1 connection-mark=no-mark action=mark-connection new-connection-mark=ISP1_conn
add chain=prerouting in-interface=ISP2 connection-mark=no-mark action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:2/0 action=mark-connection new-connection-mark=ISP1_conn 
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:2/1 action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP2
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1     
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2

/ ip route
add dst-address=0.0.0.0/0 gateway=213.14.232.161%ISP1 routing-mark=to_ISP1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=213.14.232.161%ISP2 routing-mark=to_ISP2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=213.14.232.161%ISP1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=213.14.232.161%ISP2 distance=2 check-gateway=ping

/ ip firewall nat 
add chain=srcnat out-interface=ISP1 action=masquerade
add chain=srcnat out-interface=ISP2 action=masquerade

is there anything I can add to improve it?
thanks

It looks very much like PCC example, so I don’t think it needs anything else.