Place the fence post close to the house, then run the fencing top and bottom supports up to within an inch of the siding. The slats can get closer to the siding if they are placed on the supports.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.