this method is good, but can i do it with gallery ?