close sidemenu only in smarphones (on tablet is kept open)