moving devices on panelhide/show