making control container able to slide away as needed