Improves sidebar functionality on smaller devices.