Linear stability analysis and nonlinear simulations of convective dissolution in an inclined porous layer between impermeable surfaces