add detail sidebar to the right position