layout variable in createSlideButton was public changed to private