after resizing, sliding buttons work as aspected