Make side panel contain main panel