refactored gif activity layout