Ram management issue on pie

More than two apps cant stay in the background,any solution to that?