Added sliding panel functionality