Fixed the buttons for small screen devices when inside a deck