slide adaptivity
Merge https://github.com/nin-jin/pms-jin