saving size of buttons in SharedPreferences