Panel: duplicate now always adds the duplicated panel on the same row instead of creating a new row, Closes #1185